package com.fancy.learncenter.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * 选项
 * Created by shiweiwei on 2017/12/16.
 */

public class CartoonOptionsBean implements Parcelable{
    private List<CartoonMediaBean> images;
    private List<CartoonTextsBean> texts;
    private List<CartoonMediaBean> videos;
    private List<CartoonMediaBean> audios;

    protected CartoonOptionsBean(Parcel in) {
        images = in.createTypedArrayList(CartoonMediaBean.CREATOR);
        texts = in.createTypedArrayList(CartoonTextsBean.CREATOR);
        videos = in.createTypedArrayList(CartoonMediaBean.CREATOR);
        audios = in.createTypedArrayList(CartoonMediaBean.CREATOR);
    }

    public CartoonOptionsBean() {
    }

    public List<CartoonMediaBean> getImages() {
        return images;
    }

    public void setImages(List<CartoonMediaBean> images) {
        this.images = images;
    }

    public static final Creator<CartoonOptionsBean> CREATOR = new Creator<CartoonOptionsBean>() {
        @Override
        public CartoonOptionsBean createFromParcel(Parcel in) {
            return new CartoonOptionsBean(in);
        }

        @Override
        public CartoonOptionsBean[] newArray(int size) {
            return new CartoonOptionsBean[size];
        }
    };

    public List<CartoonMediaBean> getVideos() {
        return videos;
    }

    public void setVideos(List<CartoonMediaBean> videos) {
        this.videos = videos;
    }

    public List<CartoonMediaBean> getAudios() {
        return audios;
    }

    public void setAudios(List<CartoonMediaBean> audios) {
        this.audios = audios;
    }

    public List<CartoonTextsBean> getTexts() {
        return texts;
    }

    public void setTexts(List<CartoonTextsBean> texts) {
        this.texts = texts;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeTypedList(images);
        dest.writeTypedList(texts);
        dest.writeTypedList(videos);
        dest.writeTypedList(audios);
    }
}